package AbstractClass;

public abstract class Spaceship {
    private int engineNum;
    private int crewCapacity;

    public Spaceship(int engineNum,int crewCapacity)
    {
        this.engineNum=engineNum;
        this.crewCapacity=crewCapacity;
    }

    public int getEngineNum() {
        return engineNum;
    }

    public int getCrewCapacity() {
        return crewCapacity;
    }

    public abstract void display();
}
